<!DOCTYPE html>
<html>
<head lang="zh_CN">
    <script type="text/javascript" src="ejs_production.js"></script>
    <meta charset="UTF-8">
    <title>更新商品</title>
</head>
<body>
<form method="post" action="/updategoods?uid=<%= uid %>&gid=<%= gid%>" enctype="multipart/form-data">
    <% for (var i = 0; i < photos.length; i++) { %>
    <img src="<%=photos[i]%>" />
    <% } %>
    <p>
        图片1:

        <input type="file" name="photo1"/>
    </p>
    <p>
        图片2:

        <input type="file" name="photo2"/>
    </p>
    <p>
        图片3:

        <input type="file" name="photo3"/>
    </p>
    <p>
        图片4:

        <input type="file" name="photo4"/>
    </p>
    <p>
        商品描述:
        <input type="text" name="description" value="<%=description%>"/>
    </p>
    <p>
        价格:
        <input type="text" name="price" value="<%=price%>"/>
    </p>
    <p>
        <input type="submit" value="提交"/>
    </p>
</form>
</body>
</html>
